require(['monitor'], function () {
    var $view = $('#engineRTMonitorClass');
    $('#monitor').monitor({
        canId: '18',
        callback: function (data) {
            $view.setViewData(data);
        },
        clearData: function () {
            $view.setViewData({});
        }
    });

    //左侧树点击事件
    commonFun.leftTreeNodeClickObj['monitEngine'] = function (event, treeId, treeNode) {
        if (treeNode.type == 'CAR') {
            $.ajaxExt({
                url: "/engineManage/getEngineInfo.htm",
                data: {
                    carId: treeNode.id
                }
            }).done(function (result) {
                $("#engiFacty").html(result.engiFacty || "");
                $("#engiModel").html(result.engiModel || "");
                $("#engiType").html(result.engiType || "");
            });
        }
    };

});